package com.dmall.modules.admin.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 管理员用户Token
 * @author Chen 2017/12/7
 */
@Table(name = "admin_user_token")
public class AdminUserToken {
    @Id
    @Column(name = "userId")
    private Long userId;        //用户ID
    private String token;       //token
    private Date expireTime;    //过期时间
    private Date updateTime;    //更新时间

    public AdminUserToken(Long userId) {
        this.userId = userId;
    }

    public AdminUserToken() {
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
